// pages/profile/weightMgr/weightMgr.js
Page({
  data: {
    user: {
      avatar: '/assets/images/my-avatar.jpg',
      name: '薄荷友友_5a21wr',
      height: 170,
      weight: 52
    },
    bmr: 1309,
    fatHr: { min: 118, max: 157 },
    bmi: 18,
    bmiTag: '偏瘦',
    bmiPercent: 25,
    goal: {
      progress: 0,
      target: 60,
      day: 8,
      start: '2025-09-09',
      end: '2027-05-18',
      expectGain: 8,
      leftGain: 8
    }
  },

  onBack() {
    wx.navigateBack();
  },

  onHistory() {
    wx.showToast({ title: '历史方案开发中', icon: 'none' });
  }
})